package bo.zhao.action.prototype;

public class PrototypeTest {

	public static void main(String[] args) {
		
		//创建对象
		Student student=new Student();
		student.setName("LiYiNing");
		student.setAge(9);
		student.addBook("哈利波特", 101);
		student.addBook("儿童百科全书", 702);
		System.out.println(student);
		
		//常规复制
		Student copyNormal = student.normalClone();
		System.out.println(copyNormal);
		
		//深度复制
		Student copyDeep = student.deepClone();
		System.err.println(copyDeep);
	}
	
}
